package GIT;
import java.util.Scanner;
import static GIT.StudentInformation.students;
public class Judge{
  public static void Judge () {
       Scanner i = new Scanner(System.in);
       boolean found = false;
       for (Student student : students) {
          if (i.equals(student.getName()) ||
                  i.equals(student.getXuehao()) ||
                  i.equals(student.getCourse())) {
              System.out.println("姓名" + student.getName()
                      + ",学号" + student.getXuehao()
                      + ",课程" + student.getCourse()
                      + ",成绩" + student.getGrade());
              found = true;
          }
      }
      if (!found) {
          System.out.println("未找到相关信息");
      }
  }
}


